<template>
  <div class="body">
    <h3 v-if="estimate && Object.keys(estimate).length === 0" align="center">请在诊断评估中新增确诊诊断！</h3>
    <el-row>
      <el-row class="button-save">
        <el-button type="primary" @click="save">保存</el-button>
      </el-row>
      <el-form :model="treatForm" label-position="left" label-width="140px" class="box-treat-stroke">
        <!-- 介入 -->
        <el-row v-if="estimate.cerebralInfarction == '1'" class="card">
          <el-row class="card-title" type="flex">
            <el-col :sm="24" class="content"> 介入 </el-col>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="介入评估：">
              <el-select v-model="treatForm['90088'].property2">
                <el-option
                  v-for="(assessItem, assessIndex) in assessList"
                  :key="'assess' + assessIndex"
                  :label="assessItem.assessName"
                  :value="assessItem.assessCode"
                />
              </el-select>
            </el-form-item>
            <el-form-item label="谈话：" label-width="90px" class="date">
              <el-date-picker
                v-model="treatForm['90089'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="签署介入知情同意：" class="date">
              <el-date-picker
                v-model="treatForm['90090'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
            <el-form-item label="患者到达：" label-width="90px" class="date">
              <el-date-picker
                v-model="treatForm['90091'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content"><el-form-item label="介入手术前NIHSS评分" label-width="200px" required />
          </el-row>
          <el-row class="card-content" type="flex">
            <nihss
              v-model="treatForm['90092'].property2"
              :nihss-total="treatForm['90092'].detail"
              @getTotal="treatForm['90092'].detail = $event"
            />
          </el-row>

          <el-row class="card-content" type="flex">
            <el-form-item label="ASPECT评分" label-width="200px" />
          </el-row>
          <el-row class="card-content" type="flex">
            <el-row class="card-content" type="flex">
              <el-form-item label="皮质下结构区域:" label-width="120px">
                <check-string-group
                  v-model="subcorticalStructuralAreaValue"
                  :list="subcorticalStructuralArea"
                  field="subcorticalStructuralArea"
                  @change="changeValue(subcorticalStructuralAreaValue)"
                />
              </el-form-item>
            </el-row>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-row class="card-content" type="flex">
              <el-form-item label="大脑中动脉皮质:" label-width="120px">
                <check-string-group
                  v-model="middleCerebralArteryCortexValue"
                  :list="middleCerebralArteryCortex"
                  field="middleCerebralArteryCortex"
                  @change="changeValue(middleCerebralArteryCortexValue)"
                />
              </el-form-item>
            </el-row>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-row class="card-content" type="flex">
              <el-form-item label="其他:" label-width="120px">
                <check-string-group
                  v-model="otherCheckValue"
                  :list="otherCheck"
                  field="otherCheck"
                  @change="changeValue(otherCheckValue)"
                />
              </el-form-item>
            </el-row>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-row class="card-content" type="flex">
              <el-form-item label="ASPECT评分结果:" label-width="150px">
                <el-input v-model="ASPECTDetail" style="width: 80px" disabled />分
                <el-input v-model="ASPECTResult" style="width: 400px" disabled />
              </el-form-item>
            </el-row>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="介入手术前TICI分级：" label-width="170px" class="tici">
              <el-select v-model="treatForm['90013'].property2">
                <el-option
                  v-for="(ticiBeforeItem, ticiBeforeIndex) in ticiBeforeList"
                  :key="'ticiBefore' + ticiBeforeIndex"
                  :label="ticiBeforeItem.ticiBeforeName"
                  :value="ticiBeforeItem.ticiBeforeCode"
                />
              </el-select>
            </el-form-item>
            <el-form-item label="介入手术开始时间：" label-width="150px" class="date">
              <el-date-picker
                v-model="treatForm['90093'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="是否桥接：" label-width="120px" class="radio_out_indent" required>
              <el-radio-group v-model="treatForm['90094'].property2">
                <el-radio
                  v-for="(judgeItem, judgeIndex) in judgeList"
                  :key="'judge' + judgeIndex"
                  :label="judgeItem.judgeCode"
                >
                  {{ judgeItem.judgeName }}
                </el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item
              v-if="treatForm['90094'].property2 !== '1'"
              label="二次发病时间："
              label-width="120px"
              class="date"
              required
            >
              <el-date-picker
                v-model="treatForm['90016'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="开始穿刺时间：" label-width="120px" class="date">
              <el-date-picker
                v-model="treatForm['90095'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
            <el-form-item label="穿刺成功时间：" label-width="120px" class="date" required>
              <el-date-picker
                v-model="treatForm['90096'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="血管内开通方法:" label-width="140px" required>
              <check-string-group
                v-model="treatForm['90014'].property2"
                :list="openMethodList"
                field="openMethod"
                @otherCheck="openMethodBol = $event"
                @change="selectOther('90014')"
              />
            </el-form-item>
            <el-form-item v-if="openMethodBol" label-width="40px">
              <el-input v-model="treatForm['90014'].detail" clearable />
            </el-form-item>
          </el-row>

          <el-row class="card-content"> 术后即刻NIHSS评分：</el-row>
          <el-row class="card-content" type="flex">
            <nihss
              v-model="treatForm['90098'].property2"
              :nihss-total="treatForm['90098'].detail"
              @getTotal="treatForm['90098'].detail = $event"
            />
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="术后TICI分级：" label-width="140px" class="tici" required>
              <el-select v-model="treatForm['90015'].property2">
                <el-option
                  v-for="(ticiBeforeItem, ticiBeforeIndex) in ticiBeforeList"
                  :key="'ticiBefore' + ticiBeforeIndex"
                  :label="ticiBeforeItem.ticiBeforeName"
                  :value="ticiBeforeItem.ticiBeforeCode"
                />
              </el-select>
            </el-form-item>
            <el-form-item
              label="首次血管再通时间："
              label-width="160px"
              class="date"
              :required="treatForm['90015'].property2 == 4 || treatForm['90015'].property2 == 5"
            >
              <el-date-picker
                v-model="treatForm['90201'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="手术并发症:" label-width="140px" required>
              <check-string-group
                v-model="treatForm['90097'].property2"
                :list="operCompList"
                field="operComp"
                @otherCheck="operCompBol = $event"
              />
            </el-form-item>
            <el-form-item v-if="operCompBol" label-width="40px">
              <el-input v-model="treatForm['90097'].detail" clearable />
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="介入手术结束时间：" label-width="140px" class="date">
              <el-date-picker
                v-model="treatForm['90099'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
            <el-form-item label="患者离开导管室：" label-width="140px" class="date">
              <el-date-picker
                v-model="treatForm['90100'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content">
            <el-form-item label="未给与血管内治疗的原因:" label-width="170px">
              <check-string-group v-model="treatForm['90017'].property2" :list="noTreatList" field="noTreat" />
            </el-form-item>
          </el-row>
        </el-row>
        <!-- 溶栓 -->
        <el-row v-if="estimate.cerebralInfarction == '1'" class="card">
          <el-row class="card-title" type="flex">
            <el-col :sm="24" class="content"> 溶栓 </el-col>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="溶栓医生接诊时间：" label-width="140px" class="date">
              <el-date-picker
                v-model="treatForm['90078'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
            <el-form-item label="溶栓评估：" label-width="180px">
              <el-select v-model="treatForm['90079'].property2">
                <el-option
                  v-for="(assessItem, assessIndex) in assessList"
                  :key="'assess2' + assessIndex"
                  :label="assessItem.assessName"
                  :value="assessItem.assessCode"
                />
              </el-select>
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="谈话：" label-width="140px" class="date">
              <el-date-picker
                v-model="treatForm['90080'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
            <el-form-item label="签署溶栓知情同意时间：" label-width="180px" class="date">
              <el-date-picker
                v-model="treatForm['90081'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
            <el-form-item label="患者到达溶栓室：" label-width="140px" class="date">
              <el-date-picker
                v-model="treatForm['90082'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content"><el-form-item label="溶栓前NIHSS评分：" label-width="200px" required /></el-row>
          <el-row class="card-content" type="flex">
            <nihss
              v-model="treatForm['90126'].property2"
              :nihss-total="treatForm['90126'].detail"
              @getTotal="treatForm['90126'].detail = $event"
            />
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="静脉溶栓场所：" label-width="120px">
              <el-select v-model="treatForm['90084'].property2">
                <el-option
                  v-for="(thromSiteItem, thromSiteIndex) in thromSiteList"
                  :key="'thromSite' + thromSiteIndex"
                  :label="thromSiteItem.thromSiteName"
                  :value="thromSiteItem.thromSiteCode"
                />
              </el-select>
            </el-form-item>
            <el-form-item label="开始静脉溶栓时间：" label-width="140px" class="date" required>
              <el-date-picker
                v-model="treatForm['90085'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
            <el-form-item label="静脉溶栓药：" label-width="120px" required>
              <el-select v-model="treatForm['90008'].property2" @change="selectOther('90008')">
                <el-option
                  v-for="(thromDrugsItem, thromDrugsIndex) in thromDrugsList"
                  :key="'thromDrugs' + thromDrugsIndex"
                  :label="thromDrugsItem.thromDrugsName"
                  :value="thromDrugsItem.thromDrugsCode"
                />
              </el-select>
            </el-form-item>
            <el-form-item v-if="treatForm['90008'].property2 === '9'" label=" " label-width="20px" required>
              <el-input v-model="treatForm['90008'].detail" clearable placeholder="请输入其他药物名称" />
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="溶栓并发症：" label-width="140px" required>
              <check-string-group
                v-model="treatForm['90009'].property2"
                :list="thromCompList"
                field="thromComp"
                @otherCheck="thromCompBol = $event"
                @change="selectOther('90009')"
              />
            </el-form-item>
            <el-form-item v-if="thromCompBol" label=" " label-width="20px" required>
              <el-input v-model="treatForm['90009'].detail" clearable placeholder="请输入其他并发症" />
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="结束静脉溶栓手术时间：" label-width="170px" class="date">
              <el-date-picker
                v-model="treatForm['90086'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content" required> 溶栓结束后即刻NIHSS评分：</el-row>
          <el-row class="card-content">
            <nihss
              v-model="treatForm['90098'].property2"
              :nihss-total="treatForm['90098'].detail"
              @getTotal="treatForm['90098'].detail = $event"
            />
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="未给予溶栓原因：" label-width="140px">
              <check-string-group v-model="treatForm['90012'].property2" :list="noReasonList" field="noReason" />
            </el-form-item>
          </el-row>
        </el-row>
        <!-- 脑出血 -->
        <el-row v-if="estimate.hematencephalon == '1'" class="card">
          <el-row class="card-title" type="flex">
            <el-col :sm="24" class="content"> 脑出血 </el-col>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="介入评估：">
              <el-select v-model="treatForm['90107'].property2" @change="selectOther('90107')">
                <el-option
                  v-for="(assessItem, assessIndex) in assessList"
                  :key="'assess3' + assessIndex"
                  :label="assessItem.assessName"
                  :value="assessItem.assessCode"
                />
              </el-select>
            </el-form-item>
            <el-form-item label="谈话：" label-width="160px" class="date">
              <el-date-picker
                v-model="treatForm['90044'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
            <el-form-item label="签署介入知情同意：" label-width="145px" class="date">
              <el-date-picker
                v-model="treatForm['90108'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="患者到达：" class="date">
              <el-date-picker
                v-model="treatForm['90045'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
            <el-form-item label="脑出血手术开始时间：" label-width="170px" class="date" required>
              <el-date-picker
                v-model="treatForm['90046'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
            <el-form-item label="麻醉方式：" label-width="100px" required>
              <el-select v-model="treatForm['90047'].property2" @change="selectOther('90047')">
                <el-option
                  v-for="(anesModeItem, anesModeIndex) in anesModeList"
                  :key="'anesMode' + anesModeIndex"
                  :label="anesModeItem.anesModeName"
                  :value="anesModeItem.anesModeCode"
                />
              </el-select>
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="手术方式：" required>
              <check-string-group
                v-model="treatForm['90048'].property2"
                :list="operModeList"
                field="operMode"
                @otherCheck="operModeBol = $event"
                @change="selectOther('90048')"
              />
            </el-form-item>
            <el-form-item v-if="operModeBol" label-width="20px"  label=" " required>
              <el-input v-model="treatForm['90014'].detail" clearable placeholder="请输入其他手术方式"/>
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="脑部并发症：" required>
              <check-string-group
                v-model="treatForm['90049'].property2"
                :list="brainCompList"
                field="brainComp"
                @otherCheck="brainCompBol = $event"
                @change="selectOther('90049')"
              />
            </el-form-item>
            <el-form-item v-if="brainCompBol" label=" " label-width="28px"   required>
              <el-input v-model="treatForm['90049'].detail" clearable placeholder="请输入其他并发症" />
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item v-if="treatForm['90048'].property2 && treatForm['90048'].property2.indexOf('06') !== -1" label="微创血肿穿刺术类型：" required>
              <check-string-group
                v-model="treatForm['90300'].property2"
                :list="punctureModeList"
                field="punctureMode"
                @change="selectOther('90300')"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="预后：">
              <el-select v-model="treatForm['90050'].property2">
                <el-option
                  v-for="(prognosisItem, prognosisIndex) in prognosisList"
                  :key="'prognosis' + prognosisIndex"
                  :label="prognosisItem.prognosisName"
                  :value="prognosisItem.prognosisCode"
                />
              </el-select>
            </el-form-item>
            <el-form-item label="脑出血手术结束时间：" label-width="160px" class="date">
              <el-date-picker
                v-model="treatForm['90051'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
            <el-form-item label="患者离开导管室：" label-width="145px" class="date">
              <el-date-picker
                v-model="treatForm['90052'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
          </el-row>
        </el-row>
        <!-- AVM -->
        <el-row v-if="estimate.hematencephalon == '1'" class="card">
          <el-row class="card-title" type="flex">
            <el-col :sm="24" class="content">AVM</el-col>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="介入评估：">
              <el-select v-model="treatForm['90111'].property2">
                <el-option
                  v-for="(assessItem, assessIndex) in assessList"
                  :key="'assess5' + assessIndex"
                  :label="assessItem.assessName"
                  :value="assessItem.assessCode"
                />
              </el-select>
            </el-form-item>
            <el-form-item label="谈话：" label-width="90px" class="date">
              <el-date-picker
                v-model="treatForm['90064'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="签署介入知情同意：" class="date">
              <el-date-picker
                v-model="treatForm['90112'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
            <el-form-item label="患者到达：" label-width="90px" class="date">
              <el-date-picker
                v-model="treatForm['90065'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="AVM手术开始时间：" class="date">
              <el-date-picker
                v-model="treatForm['90066'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="AVM 类型：" class="radio_out_indent">
              <el-radio-group v-model="treatForm['90067'].property2">
                <el-radio
                  v-for="(avmTypeItem, avmTypeIndex) in avmTypeList"
                  :key="'avmType' + avmTypeIndex"
                  :label="avmTypeItem.avmTypeCode"
                  style="width: 110px"
                >
                  {{ avmTypeItem.avmTypeName }}
                </el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="AVM 大小：" label-width="120px" class="radio_out_indent">
              <el-radio-group v-model="treatForm['90068'].property2" @change="getAvmScore">
                <el-radio
                  v-for="(avmSizeItem, avmSizeIndex) in avmSizeList"
                  :key="'avmSize' + avmSizeIndex"
                  :label="avmSizeItem.avmSizeCode"
                  style="width: 80px"
                >
                  {{ avmSizeItem.avmSizeName }}
                </el-radio>
              </el-radio-group>
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="AVM 部位特征：" class="radio_out_indent">
              <el-radio-group v-model="treatForm['90069'].property2" @change="getAvmScore">
                <el-radio
                  v-for="(avmchaItem, avmchaIndex) in avmchaList"
                  :key="'avmcha' + avmchaIndex"
                  :label="avmchaItem.avmchaCode"
                  style="width: 110px"
                >
                  {{ avmchaItem.avmchaName }}
                </el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="静脉引流位置：" label-width="120px" class="radio_out_indent">
              <el-radio-group v-model="treatForm['90070'].property2" @change="getAvmScore">
                <el-radio
                  v-for="(venoDraItem, venoDraIndex) in venoDraList"
                  :key="'venoDra' + venoDraIndex"
                  :label="venoDraItem.venoDraCode"
                  style="width: 80px"
                >
                  {{ venoDraItem.venoDraName }}
                </el-radio>
              </el-radio-group>
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="Spetzler–Martin 评分：" label-width="160px">
              <el-input v-model="treatForm['90071'].property2" disabled />
            </el-form-item>
          </el-row>

          <el-row class="card-content" type="flex">
            <el-form-item label="静脉血栓：" class="radio_out_indent">
              <el-radio-group v-model="treatForm['90072'].property2">
                <el-radio
                  v-for="(haveItem, haveIndex) in haveList"
                  :key="'have' + haveIndex"
                  :label="haveItem.haveCode"
                >
                  {{ haveItem.haveName }}
                </el-radio>
              </el-radio-group>
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="AVM 治疗策略：" label-width="140px">
              <check-string-group
                v-model="treatForm['90073'].property2"
                :list="avmTreatList"
                field="avmTreat"
                width="100px"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="AVM 治疗并发症：" label-width="140px">
              <check-string-group
                v-model="treatForm['90074'].property2"
                :list="avmCompList"
                field="avmComp"
                width="100px"
                @otherCheck="avmCompBol = $event"
                @change="selectOther('90074')"
              />
            </el-form-item>
            <el-form-item v-if="avmCompBol" label-width="0px">
              <el-input v-model="treatForm['90074'].detail" clearable />
            </el-form-item>
          </el-row>

          <el-row class="card-content" type="flex">
            <el-form-item label="AVM责任病灶位置：" label-width="140px">
              <check-string-list
                v-model="treatForm['90075'].property2"
                :list="[lesLocaList, lesLocaList, lesLocaCenList]"
                :field-list="['lesLoca', 'lesLoca', 'lesLocaCen']"
                :detail="treatForm['90075'].detail"
                :label="['左侧', '右侧', '中线部位']"
                label-width="80px"
                @checkDetail="treatForm['90075'].detail = $event"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="AVM手术结束时间：" label-width="150px" class="date">
              <el-date-picker
                v-model="treatForm['90076'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
            <el-form-item label="患者离开导管室：" label-width="140px" class="date">
              <el-date-picker
                v-model="treatForm['90077'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
          </el-row>
        </el-row>
        <!-- 烟雾病 -->
        <el-row v-if="estimate.mmd == '1'" class="card">
          <el-row class="card-title" type="flex">
            <el-col :sm="24" class="content"> 烟雾病 </el-col>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="介入评估：">
              <el-select v-model="treatForm['90109'].property2" @change="selectOther('90109')">
                <el-option
                  v-for="(assessItem, assessIndex) in assessList"
                  :key="'assess4' + assessIndex"
                  :label="assessItem.assessName"
                  :value="assessItem.assessCode"
                />
              </el-select>
            </el-form-item>
            <el-form-item label="谈话：" class="date">
              <el-date-picker
                v-model="treatForm['90053'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="签署介入知情同意：" label-width="150px" class="date">
              <el-date-picker
                v-model="treatForm['90110'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
            <el-form-item label="患者到达：" class="date">
              <el-date-picker
                v-model="treatForm['90054'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content">
            <el-form-item label="临床表现类型：" label-width="140px">
              <check-string-group v-model="treatForm['90055'].property2" :list="clinicalList" field="clinical" />
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="既往类似病史发病时间：" label-width="180px" class="date">
              <el-date-picker
                v-model="treatForm['90056'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
            <el-form-item label="既往手术情况：" label-width="120px" class="radio_out_indent">
              <el-radio-group v-model="treatForm['90057'].property2">
                <el-radio
                  v-for="(haveItem, haveIndex) in haveList"
                  :key="'have' + haveIndex"
                  :label="haveItem.haveCode"
                >
                  {{ haveItem.haveName }}
                </el-radio>
              </el-radio-group>
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="烟雾病手术开始时间：" label-width="180px" class="date">
              <el-date-picker
                v-model="treatForm['90058'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
          </el-row>

          <el-row class="card-content">
            <el-form-item label="烟雾状血管位置：" label-width="140px" class="date">
              <check-string-list
                v-model="treatForm['90059'].property2"
                :list="[vesselsList, vesselsList]"
                :field-list="['vessels', 'vessels']"
                :detail="treatForm['90059'].detail"
                :label="['左侧', '右侧']"
                @checkDetail="treatForm['90059'].detail = $event"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content">
            <el-form-item label="颅内外代偿：" label-width="140px" class="radio_out_indent">
              <el-radio-group v-model="treatForm['90060'].property2">
                <el-radio
                  v-for="(haveItem, haveIndex) in haveList"
                  :key="'have' + haveIndex"
                  :label="haveItem.haveCode"
                >
                  {{ haveItem.haveName }}
                </el-radio>
              </el-radio-group>
            </el-form-item>
          </el-row>
          <el-row class="card-content">
            <el-form-item label="治疗方式：" label-width="140px" class="date">
              <check-string-list
                v-model="treatForm['90061'].property2"
                :list="[treatTypeList, treatTypeList]"
                :field-list="['treatType', 'treatType']"
                :detail="treatForm['90061'].detail"
                :label="['左侧', '右侧']"
                @checkDetail="treatForm['90061'].detail = $event"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="手术治疗并发症：" label-width="140px">
              <check-string-group
                v-model="treatForm['90062'].property2"
                :list="surgCompList"
                field="surgComp"
                @otherCheck="surgCompBol = $event"
                @change="selectOther('90062')"
              />
            </el-form-item>
            <el-form-item v-if="surgCompBol" label-width="40px">
              <el-input v-model="treatForm['90062'].detail" clearable />
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="烟雾病手术结束时间：" label-width="160px" class="date">
              <el-date-picker
                v-model="treatForm['90117'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
            <el-form-item label="患者离开导管室：" label-width="140px" class="date">
              <el-date-picker
                v-model="treatForm['90063'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
          </el-row>
        </el-row>
        <!-- 颅内动脉瘤 -->
        <el-row v-if="estimate.isuia == '1'" class="card">
          <el-row class="card-title" type="flex">
            <el-col :sm="24" class="content"> 颅内动脉瘤 </el-col>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="介入评估：">
              <el-select v-model="treatForm['90105'].property2" @change="selectOther('90105')">
                <el-option
                  v-for="(assessItem, assessIndex) in assessList"
                  :key="'assess6' + assessIndex"
                  :label="assessItem.assessName"
                  :value="assessItem.assessCode"
                />
              </el-select>
            </el-form-item>
            <el-form-item label="谈话：" class="date" label-width="120px">
              <el-date-picker
                v-model="treatForm['90029'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="签署介入知情同意：" class="date">
              <el-date-picker
                v-model="treatForm['90106'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
            <el-form-item label="患者到达：" class="date" label-width="120px">
              <el-date-picker
                v-model="treatForm['90030'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="夹闭术或栓塞术手术开始时间：" label-width="210px" class="date" required>
              <el-date-picker
                v-model="treatForm['90031'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
            <el-form-item label="手术类型：" label-width="120px" required>
              <el-select v-model="treatForm['90032'].property2">
                <el-option
                  v-for="(operTypeItem, operTypeIndex) in operTypeList"
                  :key="'operType' + operTypeIndex"
                  :label="operTypeItem.operTypeName"
                  :value="operTypeItem.operTypeCode"
                />
              </el-select>
            </el-form-item>
          </el-row>
          <el-row v-show="treatForm['90032'].property2 !== '02'">
            <el-row v-if="treatForm['90032'].property2 === '03'" class="card-title" type="flex">
              <el-col :sm="24" class="content"> 介入栓塞术 </el-col>
            </el-row>
            <el-row class="card-content" type="flex">
              <el-form-item label="介入途径：" class="radio_out_indent">
                <check-string-group
                  v-model="treatForm['90033'].property2"
                  :list="interWayList"
                  field="interWay"
                  width="86px"
                />
              </el-form-item>
              <el-form-item label="弹簧圈：" label-width="80px">
                <el-input v-model="treatForm['90034'].detail" />
              </el-form-item>
              <div class="vertical-center">个</div>
            </el-row>
            <el-row class="card-content">
              <el-form-item label="支架名称：">
                <check-string-group
                  v-model="treatForm['90035'].property2"
                  :list="bracketList"
                  field="bracket"
                  width="86px"
                  @otherCheck="bracketBol = $event"
                  @change="selectOther('90035')"
                />
              </el-form-item>
            </el-row>
            <el-row class="card-content" type="flex">
              <el-form-item v-if="bracketBol">
                <el-input v-model="treatForm['90035'].detail" clearable />
              </el-form-item>
            </el-row>
            <el-row class="card-content content-line" type="flex">
              <el-form-item label="球囊：">
                <el-input v-model="treatForm['90036'].detail" />
              </el-form-item>
              <div class="vertical-center">个</div>
            </el-row>
            <el-row class="card-content" type="flex">
              <el-form-item label="其他栓塞材料：">
                <check-string-group
                  v-model="treatForm['90037'].property2"
                  :list="emboMaterList"
                  field="emboMater"
                  width="87px"
                  @otherCheck="emboMaterBol = $event"
                  @change="selectOther('90037')"
                />
              </el-form-item>
              <el-form-item v-if="emboMaterBol" label-width="40px">
                <el-input v-model="treatForm['90037'].detail" clearable />
              </el-form-item>
            </el-row>
            <el-row class="card-content" type="flex">
              <el-form-item label="动脉瘤治疗结果：">
                <el-select v-model="treatForm['90038'].property2">
                  <el-option
                    v-for="(aneuResultItem, aneuResultIndex) in aneuResultList"
                    :key="'aneuResult' + aneuResultIndex"
                    :label="aneuResultItem.aneuResultName"
                    :value="aneuResultItem.aneuResultCode"
                  />
                </el-select>
              </el-form-item>
              <el-form-item label="载瘤动脉情况：" label-width="160px">
                <el-select v-model="treatForm['90039'].property2">
                  <el-option
                    v-for="(parArteryItem, parArteryIndex) in parArteryList"
                    :key="'parArtery' + parArteryIndex"
                    :label="parArteryItem.parArteryName"
                    :value="parArteryItem.parArteryCode"
                  />
                </el-select>
              </el-form-item>
            </el-row>
          </el-row>
          <el-row v-show="treatForm['90032'].property2 !== '01'">
            <el-row v-if="treatForm['90032'].property2 === '03'" class="card-title" type="flex">
              <el-col :sm="24" class="content"> 夹闭术 </el-col>
            </el-row>
            <el-row class="card-content" type="flex">
              <el-form-item label="动脉瘤治疗结果：">
                <el-select v-model="treatForm['90041'].property2">
                  <el-option
                    v-for="(aneuResultItem, aneuResultIndex) in aneuResultList"
                    :key="'aneuResult1' + aneuResultIndex"
                    :label="aneuResultItem.aneuResultName"
                    :value="aneuResultItem.aneuResultCode"
                  />
                </el-select>
              </el-form-item>
              <el-form-item label="夹闭后载瘤动脉情况：" label-width="160px">
                <el-select v-model="treatForm['90042'].property2">
                  <el-option
                    v-for="(clipStatusItem, clipStatusIndex) in clipStatusList"
                    :key="'clipStatus' + clipStatusIndex"
                    :label="clipStatusItem.clipStatusName"
                    :value="clipStatusItem.clipStatusCode"
                  />
                </el-select>
              </el-form-item>
            </el-row>
            <el-row class="card-content" type="flex">
              <el-form-item label="夹闭术过程中并发症：" label-width="160px">
                <check-string-group
                  v-model="treatForm['90043'].property2"
                  :list="clipCompList"
                  field="clipComp"
                  @otherCheck="clipCompBol = $event"
                  @change="selectOther('90043')"
                />
              </el-form-item>
              <el-form-item v-if="clipCompBol" label-width="40px">
                <el-input v-model="treatForm['90043'].detail" clearable />
              </el-form-item>
            </el-row>
            <el-row class="card-content" type="flex">
              <el-form-item label="栓塞术或夹闭术手术结束时间：" label-width="220px" class="date">
                <el-date-picker
                  v-model="treatForm['90122'].hit_time"
                  value-format="yyyy-MM-dd HH:mm:ss"
                  type="datetime"
                />
              </el-form-item>
              <el-form-item label="患者离开导管室：" label-width="160px" class="date">
                <el-date-picker
                  v-model="treatForm['90123'].hit_time"
                  value-format="yyyy-MM-dd HH:mm:ss"
                  type="datetime"
                />
              </el-form-item>
            </el-row>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="栓塞术过程中并发症：" label-width="160px" class="embol-comp">
              <el-checkbox-group v-model="a90040" @change="compChange">
                <el-row>
                  <el-checkbox label="01">
                    急性血栓形成-动脉瘤颈附近
                  </el-checkbox>
                  <el-checkbox label="02">
                    急性血栓形成-载瘤动脉瘤颈以远
                  </el-checkbox>
                  <el-checkbox label="03">
                    急性血栓形成-载瘤动脉瘤颈近心端
                  </el-checkbox>
                  <el-checkbox label="04"> 非载瘤动脉流域的血管</el-checkbox>
                  <el-checkbox label="05"> 动脉瘤破裂</el-checkbox>
                  <el-checkbox label="06"> 动脉瘤附近穿支血管闭塞</el-checkbox>
                  <el-checkbox v-if="a90040.indexOf('07') < 0" label="07" style="width: 140px">
                    动脉夹层
                  </el-checkbox>
                </el-row>
                <el-row type="flex">
                  <el-checkbox v-if="a90040.indexOf('07') > -1" label="07" style="width: 140px">
                    动脉夹层
                  </el-checkbox>

                  <el-form-item
                    v-if="a90040.indexOf('07') > -1"
                    label-width="0px"
                    style="margin-top: 0; margin-bottom: 0"
                  >
                    <el-input v-model="other1" @input="embolCompInput" />
                  </el-form-item>
                </el-row>
              </el-checkbox-group>
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label-width="160px">
              <el-checkbox-group v-model="b90040" class="el-input--medium" @change="compChange">
                <el-checkbox label="08" style="width: 250px">
                  穿刺部位并发症
                </el-checkbox>
                <el-checkbox label="99"> 其他术中并发症 </el-checkbox>
              </el-checkbox-group>
            </el-form-item>
            <el-form-item v-if="b90040.indexOf('99') > -1" label-width="0px">
              <el-input v-model="other2" @input="embolCompInput" />
            </el-form-item>
          </el-row>
        </el-row>
        <!-- CEA/CAS -->
        <el-row v-if="estimate.cas == '1'" class="card">
          <el-row class="card-title" type="flex">
            <el-col :sm="24" class="content"> CEA/CAS </el-col>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="介入评估：" label-width="140px">
              <el-select v-model="treatForm['90101'].property2">
                <el-option
                  v-for="(assessItem, assessIndex) in assessList"
                  :key="'assess7' + assessIndex"
                  :label="assessItem.assessName"
                  :value="assessItem.assessCode"
                />
              </el-select>
            </el-form-item>
            <el-form-item label="谈话：" class="date" label-width="120px">
              <el-date-picker
                v-model="treatForm['90018'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="签署介入知情同意：" label-width="140px" class="date">
              <el-date-picker
                v-model="treatForm['90102'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
            <el-form-item label="患者到达：" class="date" label-width="120px">
              <el-date-picker
                v-model="treatForm['90019'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="缺血或脑梗死症状：" label-width="140px" class="radio_out_indent">
              <el-radio-group v-model="treatForm['90103'].property2">
                <el-radio
                  v-for="(haveItem, haveIndex) in haveList"
                  :key="'have2' + haveIndex"
                  :label="haveItem.haveCode"
                  style="width: 55px"
                >
                  {{ haveItem.haveName }}
                </el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="CEA或CAS手术开始时间：" label-width="200px" class="date">
              <el-date-picker
                v-model="treatForm['90020'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="手术部位：" label-width="140px" class="radio_out_indent">
              <check-string-group v-model="treatForm['90021'].property2" :list="surgSiteList" field="surgSite" />
            </el-form-item>
            <el-form-item label="麻醉方式：" label-width="120px" class="radio_out_indent">
              <el-radio-group v-model="treatForm['90022'].property2">
                <el-radio
                  v-for="(anesModeItem, anesModeIndex) in anesModeList"
                  :key="'anesMode' + anesModeIndex"
                  :label="anesModeItem.anesModeCode"
                >
                  {{ anesModeItem.anesModeName }}
                </el-radio>
              </el-radio-group>
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="实施的监测手段：" label-width="140px" style="margin-right: 35px" required>
              <check-string-group
                v-model="treatForm['90023'].property2"
                :list="monitList"
                field="monit"
                width="140px"
              />
            </el-form-item>
          </el-row>

          <el-row class="card-content" type="flex">
            <el-form-item label="手术采取方式：" label-width="140px" required>
              <el-select v-model="treatForm['90024'].property2">
                <el-option
                  v-for="(ceaOperItem, ceaOperIndex) in ceaOperList"
                  :key="'ceaOper' + ceaOperIndex"
                  :label="ceaOperItem.ceaOperName"
                  :value="ceaOperItem.ceaOperCode"
                />
              </el-select>
            </el-form-item>
            <el-form-item label="采用补片：" label-width="85px">
              <el-radio-group v-model="treatForm['90025'].property2" style="display: flex">
                <el-radio
                  v-for="(judgeItem, judgeIndex) in judgeList"
                  :key="'judge' + judgeIndex"
                  :label="judgeItem.judgeCode"
                  style="width: 55px"
                >
                  {{ judgeItem.judgeName }}
                </el-radio>
              </el-radio-group>
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="并发症：" label-width="140px" required>
              <div v-if="treatForm['90024'].property2 == '1' || treatForm['90024'].property2 == '2' || treatForm['90024'].property2 == '4'">
                <span
                  class="el-form-item__label red-star"
                >CEA手术并发症</span>
                <check-string-group
                  v-model="treatForm['90026'].property2"
                  :list="ceaCompList1"
                  field="ceaComp"
                  width="140px"
                />
              </div>
              <div v-if="treatForm['90024'].property2 == '3' || treatForm['90024'].property2 == '4'">
                <span
                  class="el-form-item__label red-star"
                >手术CAS并发症</span>
                <check-string-group
                  v-model="treatForm['90226'].property2"
                  :list="ceaCompList2"
                  field="ceaComp"
                  width="140px"
                />
              </div>
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="CEA或CAS手术结束时间：" label-width="200px" class="date">
              <el-date-picker
                v-model="treatForm['90027'].hit_Time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
            <el-form-item label="患者离开导管室：" label-width="140px" class="date">
              <el-date-picker
                v-model="treatForm['90104'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
          </el-row>

          <el-row class="card-title" type="flex">
            <el-col :sm="24" class="content"> 术后药物治疗 </el-col>
          </el-row>
          <el-row class="card-content content-line">
            <el-form-item label="抗血小板：" label-width="140px">
              <check-string-group
                v-model="treatForm['90028'].property2"
                :list="antipList"
                field="antip"
                width="180px"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content content-line">
            <el-form-item label="抗凝：" label-width="140px">
              <check-string-group
                v-model="treatForm['90118'].property2"
                :list="anticoagList"
                field="anticoag"
                width="180px"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content content-line">
            <el-form-item label="降压：" label-width="140px">
              <check-string-group
                v-model="treatForm['90119'].property2"
                :list="stepDownList"
                field="stepDown"
                width="180px"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content content-line">
            <el-form-item label="调脂：" label-width="140px">
              <check-string-group
                v-model="treatForm['90120'].property2"
                :list="lipidReguList"
                field="lipidRegu"
                width="180px"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content content-line">
            <el-form-item label="降糖：" label-width="140px">
              <check-string-group
                v-model="treatForm['90121'].property2"
                :list="hypogList"
                field="hypog"
                width="180px"
              />
            </el-form-item>
          </el-row>
        </el-row>

        <el-row class="card">
          <el-row class="card-title" type="flex">
            <el-col :sm="24" class="content"> 保守 </el-col>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="谈话：" label-width="60px" class="date">
              <el-date-picker
                v-model="treatForm['90115'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="原因：" label-width="60px">
              <check-string-group v-model="treatForm['90113'].property2" :list="reasonList" field="reason" />
            </el-form-item>
          </el-row>
        </el-row>
        <el-row class="card">
          <el-row class="card-title" type="flex">
            <el-col :sm="24" class="content"> 放弃 </el-col>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="谈话：" label-width="60px" class="date">
              <el-date-picker
                v-model="treatForm['90116'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
            <el-form-item label="放弃治疗知情同意：" label-width="160px" class="date">
              <el-date-picker
                v-model="treatForm['90125'].hit_time"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetime"
              />
            </el-form-item>
          </el-row>
          <el-row class="card-content" type="flex">
            <el-form-item label="原因：" label-width="60px">
              <check-string-group v-model="treatForm['90114'].property2" :list="reasonList" field="reason" />
            </el-form-item>
          </el-row>
        </el-row>
      </el-form>
    </el-row>
  </div>
</template>

<script>
import { queryEventTouchsData, saveCure } from '@/api/green-channel/treatment'
import { findStrokeDiagnose } from '@/api/green-channel/diagnoses'
// import format from '@/utils/format'
import Nihss from '@/components/Score/Nihss'
import CheckStringGroup from '@/components/Score/CheckStringGroup'
import CheckStringList from '@/components/Score/CheckStringList'
export default {
  components: {
    Nihss,
    CheckStringGroup,
    CheckStringList
  },
  props: {
    checkrowdata: {
      type: Object,
      default() {
        return {}
      }
    }
  },
  data() {
    return {
      estimate: {},
      a90040: [],
      b90040: [],
      other1: '',
      other2: '',
      comp1: false,
      comp2: false,
      treatForm: {},
      stateForm: {},
      openMethodBol: false,
      operCompBol: false,
      // 溶栓并发症
      thromCompBol: false,
      // 手术方式
      operModeBol: false,
      // 脑部并发症
      brainCompBol: false,
      // 手术治疗并发症
      surgCompBol: false,
      // AVM 治疗并发症
      avmCompBol: false,
      // 支架名称
      bracketBol: false,
      // 其他栓塞材料
      emboMaterBol: false,
      // 夹闭术过程中并发症
      clipCompBol: false,

      numList: [
        /** 介入*/
        '90088', // 介入评估
        '90089', // 谈话
        '90090', // 签署介入知情同意
        '90091', // 患者到达
        '90092', // 介入手术前NIHSS评分
        '90013', // 介入术前TICI分级
        '90093', // 介入手术开始时间
        '90094', // 是否桥接
        '90016', // 二次发病时间
        '90095', // 开始穿刺时间
        '90096', // 穿刺成功时间
        '90014', // 血管内开通方法
        '90098', // 术后NIHSS评分
        '90015', // 术后TICI分级
        '90097', // 手术并发症
        '90099', // 介入手术结束时间
        '90100', // 患者离开导管室
        '90017', // 未给与血管内治疗的原因

        /** 溶栓*/
        '90078', // 溶栓医生接诊时间
        '90079', // 溶栓评估
        '90080', // 谈话
        '90081', // 签署溶栓知情同意时间
        '90082', // 患者到达溶栓室
        '90126', // 溶栓前NIHSS评分
        '90084', // 溶栓场所
        '90085', // 开始静脉溶栓时间
        '90008', // 静脉溶栓药物
        '90009', // 溶栓并发症
        '90086', // 结束静脉溶栓手术时间
        '90087', // 溶栓结束后即刻NIHSS评分
        '90012', // 未给予溶栓原因

        /** 脑出血*/
        '90107', // 介入评估
        '90044', // 谈话
        '90108', // 签署介入知情同意
        '90045', // 患者到达
        '90046', // 脑出血手术开始时间
        '90047', // 麻醉方式
        '90048', // 手术方式
        '90049', // 脑部并发症
        '90050', // 预后
        '90051', // 脑出血手术结束时间
        '90052', // 患者离开导管室
        '90201', //

        /** AVM*/
        '90111', // 介入评估
        '90064', // 谈话
        '90112', // 签署介入知情同意
        '90065', // 患者到达
        '90066', // AVM手术开始时间
        '90067', // AVM 类型
        '90068', // AVM 大小
        '90069', // AVM 部位特征
        '90070', // 静脉引流位置
        '90071', // Spetzler–Martin 评分
        '90072', // 有无静脉血栓
        '90073', // AVM 治疗策略
        '90074', // AVM 治疗并发症
        '90075', // AVM责任病灶位置
        '90076', // AVM手术结束时间
        '90077', // 患者离开导管室

        /** 烟雾病*/
        '90109', // 介入评估
        '90053', // 谈话
        '90110', // 签署介入知情同意
        '90054', // 患者到达
        '90055', // 临床表现类型
        '90056', // 既往类似病史发病时间
        '90057', // 既往手术情况
        '90058', // 烟雾病手术开始时间
        '90059', // 烟雾状血管位置
        '90060', // 颅内外代偿
        '90061', // 治疗方式
        '90062', // 手术治疗并发症
        '90075', // AVM责任病灶位置
        '90117', // 烟雾病手术结束时间
        '90063', // 患者离开导管室

        /** 颅内动脉瘤*/
        '90105', // 介入评估
        '90029', // 谈话
        '90106', // 签署介入知情同意
        '90030', // 患者到达
        '90031', // 夹闭术或栓塞术手术开始时间
        '90032', // 手术类型
        // 介入栓塞术
        '90033', // 介入途径
        '90034', // 弹簧圈
        '90035', // 支架名称
        '90036', // 球囊
        '90037', // 其他栓塞材料
        '90038', // 动脉瘤治疗结果
        '90039', // 载瘤动脉情况
        '90040', // 栓塞术过程中并发症 多选?

        // 夹闭术
        '90041', // 动脉瘤治疗结果
        '90042', // 夹闭后载瘤动脉情况
        '90043', // 夹闭术过程中并发症
        '90122', // 栓塞术或夹闭术手术结束时间
        '90123', // 患者离开导管室

        /** CEA/CAS*/
        '90101', // 介入评估
        '90018', // 谈话
        '90102', // 签署介入知情同意
        '90019', // 患者到达时间
        '90103', // 缺血或脑梗死症状
        '90020', // CEA或CAS手术开始时间
        '90021', // 手术部位
        '90022', // 麻醉方式
        '90023', // 实施的监测手段
        '90024', // 手术采取方式
        '90025', // 采用补片
        '90026', // 并发症
        '90027', // CEA或CAS手术结束时间
        '90104', // 患者离开导管室
        '90028', // 抗血小板
        '90118', // 抗凝
        '90119', // 降压
        '90120', // 调脂
        '90121', // 降糖

        /** 保守*/
        '90115', // 保守谈话
        '90113', // 保守原因

        /** 放弃*/
        '90116', // 放弃谈话
        '90125', // 放弃治疗知情同意
        '90114', // 放弃原因
        '90226', // 手术CAS并发症
        '90300', // 微创血肿穿刺术类型
        '91013' // ASPECT评分结果
      ],
      // 介入-介入评估
      assessList: [
        { assessName: '无禁忌或有适应症', assessCode: '1' },
        { assessName: '有禁忌症', assessCode: '2' },
        { assessName: '有绝对禁忌症', assessCode: '3' }
      ],
      // 皮质下结构区域
      subcorticalStructuralArea: [
        { subcorticalStructuralAreaName: '尾状核（C）', subcorticalStructuralAreaCode: '01' },
        { subcorticalStructuralAreaName: '豆状核（L）', subcorticalStructuralAreaCode: '02' },
        { subcorticalStructuralAreaName: '内囊（IC）', subcorticalStructuralAreaCode: '03' }
      ],
      // 大脑中动脉皮质
      middleCerebralArteryCortex: [
        { middleCerebralArteryCortexName: '大脑中动脉前皮质区（M1)', middleCerebralArteryCortexCode: '04' },
        { middleCerebralArteryCortexName: '岛叶皮质（I）', middleCerebralArteryCortexCode: '05' },
        { middleCerebralArteryCortexName: '大脑中动脉岛叶外侧皮质区（M2）', middleCerebralArteryCortexCode: '06' },
        { middleCerebralArteryCortexName: '大脑中动脉后皮层区（M3）', middleCerebralArteryCortexCode: '07' },
        { middleCerebralArteryCortexName: 'M1上方的大脑中动脉皮层（M4）', middleCerebralArteryCortexCode: '08' },
        { middleCerebralArteryCortexName: 'M2上方的大脑中动脉皮层（M5）', middleCerebralArteryCortexCode: '09' },
        { middleCerebralArteryCortexName: 'M3上方的大脑中动脉皮层（M6）', middleCerebralArteryCortexCode: '10' }
      ],
      // 其他
      otherCheck: [
        { otherCheckName: '大脑前动脉区（A）', otherCheckCode: '11' },
        { otherCheckName: '大脑后动脉区（P）', otherCheckCode: '12' },
        { otherCheckName: '脑干区，包括延髓，桥脑和中脑（Po）', otherCheckCode: '13' },
        { otherCheckName: '小脑区，包括小脑半球，蚓部（Cb）', otherCheckCode: '14' }
      ],
      // 介入术前TICI分级
      ticiBeforeList: [
        { ticiBeforeName: '0级 血管闭塞远端无顺向血流', ticiBeforeCode: '1' },
        {
          ticiBeforeName: '1级 对比剂部分通过闭塞部位，但不能充盈远端血管',
          ticiBeforeCode: '2'
        },
        {
          ticiBeforeName: '2a级 对比剂<2/3受累血管的供血区',
          ticiBeforeCode: '3'
        },
        {
          ticiBeforeName: '2b级 造影剂完全充盈，但排空延迟',
          ticiBeforeCode: '4'
        },
        {
          ticiBeforeName: '3级 对比剂完全，迅速充盈远端血管，并迅速清除',
          ticiBeforeCode: '5'
        }
      ],
      judgeList: [
        { judgeName: '是', judgeCode: '1' },
        { judgeName: '否', judgeCode: '2' }
      ],
      // 血管内开通方法
      openMethodList: [
        { openMethodName: '支架取栓', openMethodCode: '01' },
        { openMethodName: '抽栓', openMethodCode: '02' },
        { openMethodName: '球囊成形', openMethodCode: '03' },
        { openMethodName: '支架成形', openMethodCode: '04' },
        { openMethodName: '动脉溶栓', openMethodCode: '05' },
        { openMethodName: '机械碎栓', openMethodCode: '06' },
        { openMethodName: '其他', openMethodCode: '99' }
      ],
      // 手术并发症
      operCompList: [
        { operCompName: '无', operCompCode: '98' },
        { operCompName: '颅内出血', operCompCode: '01' },
        { operCompName: '动脉夹层', operCompCode: '02' },
        { operCompName: '缺血性并发症/其他部位动脉闭塞', operCompCode: '03' },
        { operCompName: '支架脱离', operCompCode: '04' },
        { operCompName: '再闭塞', operCompCode: '05' },
        { operCompName: '消化道出血', operCompCode: '06' },
        { operCompName: '颈动脉海绵窦瘘', operCompCode: '07' },
        { operCompName: '再灌注损伤', operCompCode: '08' },
        { operCompName: '其他', operCompCode: '99' }
      ],
      // 未给与血管内治疗的原因
      noTreatList: [
        { noTreatName: '超时间窗', noTreatCode: '01' },
        { noTreatName: '禁忌症', noTreatCode: '02' },
        { noTreatName: '患者/家属拒绝', noTreatCode: '03' },
        { noTreatName: '非大血管病变', noTreatCode: '04' },
        { noTreatName: '其他', noTreatCode: '99' }
      ],
      // 静脉溶栓场所
      thromSiteList: [
        { thromSiteName: '请选择静脉溶栓场所', thromSiteCode: '' },
        { thromSiteName: '本地急救车', thromSiteCode: '1' },
        { thromSiteName: '本院急救车', thromSiteCode: '2' },
        { thromSiteName: '本院CT室', thromSiteCode: '3' },
        { thromSiteName: '本院病房', thromSiteCode: '4' },
        { thromSiteName: '外院', thromSiteCode: '5' }
      ],
      // 静脉溶栓药物
      thromDrugsList: [
        { thromDrugsName: '请选择静脉溶栓药', thromDrugsCode: '' },
        { thromDrugsName: 'rt-Pa', thromDrugsCode: '1' },
        { thromDrugsName: '尿激酶', thromDrugsCode: '2' },
        { thromDrugsName: '阿尼普酶', thromDrugsCode: '3' },
        { thromDrugsName: '瑞替普酶', thromDrugsCode: '4' },
        { thromDrugsName: '替奈普酶', thromDrugsCode: '5' },
        { thromDrugsName: '尿激酶原', thromDrugsCode: '6' },
        { thromDrugsName: '其他', thromDrugsCode: '9' }
      ],
      // 溶栓并发症
      thromCompList: [
        { thromCompName: '无', thromCompCode: '98' },
        { thromCompName: '颅内出血', thromCompCode: '01' },
        { thromCompName: '消化道出血', thromCompCode: '02' },
        { thromCompName: '牙龈出血', thromCompCode: '03' },
        { thromCompName: '其他部位出血', thromCompCode: '04' },
        { thromCompName: '再灌注损伤', thromCompCode: '05' },
        { thromCompName: '血管源性舌水肿', thromCompCode: '06' },
        { thromCompName: '其他', thromCompCode: '99' }
      ],
      // 未给予溶栓原因
      noReasonList: [
        { noReasonName: '超时间窗', noReasonCode: '01' },
        { noReasonName: '禁忌症', noReasonCode: '02' },
        { noReasonName: '患者/家属拒绝', noReasonCode: '03' },
        { noReasonName: '外院溶栓', noReasonCode: '04' },
        { noReasonName: '其他', noReasonCode: '99' }
      ],
      // 未给予溶栓原因
      reasonList: [
        { reasonName: '超时间窗', reasonCode: '01' },
        { reasonName: '禁忌症', reasonCode: '02' },
        { reasonName: '患者/家属拒绝', reasonCode: '03' },
        { reasonName: '外院溶栓', reasonCode: '04' },
        { reasonName: '非大血管病变', reasonCode: '05' },
        { reasonName: '其他', reasonCode: '99' }
      ],
      // 麻醉方式
      anesModeList: [
        { anesModeName: '全麻', anesModeCode: '1' },
        { anesModeName: '局麻', anesModeCode: '2' }
      ],
      // 手术方式
      operModeList: [
        { operModeName: '开颅血肿清除术', operModeCode: '01' },
        // { operModeName: '去骨瓣减压术', operModeCode: '02' },
        // { operModeName: '脑室镜下血肿抽吸术', operModeCode: '03' },
        // { operModeName: '钻孔血肿抽吸术', operModeCode: '04' },
        // { operModeName: '符合手术', operModeCode: '05' },
        { operModeName: '内镜下血肿清除术', operModeCode: '05' },
        { operModeName: '微创血肿穿刺术', operModeCode: '06' },
        { operModeName: '脑室引流术', operModeCode: '07' },
        { operModeName: '其他', operModeCode: '99' }
      ],
      // 微创血肿穿刺术类型
      punctureModeList: [
        { punctureModeName: '立体定向框架手术', punctureModeCode: '01' },
        { punctureModeName: '神经外科手术机器人手术', punctureModeCode: '02' },
        { punctureModeName: '普通微创血肿穿刺术', punctureModeCode: '03' }
      ],
      // 脑部并发症
      brainCompList: [
        { brainCompName: '无', brainCompCode: '98' },
        { brainCompName: '手术部位再脑出血', brainCompCode: '01' },
        { brainCompName: '手术远隔部位再出血', brainCompCode: '02' },
        { brainCompName: '脑梗死', brainCompCode: '03' },
        { brainCompName: '继发性癫痫', brainCompCode: '04' },
        { brainCompName: '颅内感染', brainCompCode: '05' },
        { brainCompName: '其他', brainCompCode: '99' }
      ],
      // 预后
      prognosisList: [
        { prognosisName: '请选择预后', prognosisCode: '' },
        { prognosisName: '治愈', prognosisCode: '1' },
        { prognosisName: '好转', prognosisCode: '2' },
        { prognosisName: '加重', prognosisCode: '3' },
        { prognosisName: '死亡', prognosisCode: '4' }
      ],
      // 临床表现类型
      clinicalList: [
        { clinicalName: 'TIA', clinicalCode: '01' },
        { clinicalName: '脑梗塞', clinicalCode: '02' },
        { clinicalName: '脑室出血', clinicalCode: '03' },
        { clinicalName: '蛛网膜下腔出血', clinicalCode: '04' },
        { clinicalName: '头痛', clinicalCode: '05' },
        { clinicalName: '癫痫发作', clinicalCode: '06' },
        { clinicalName: '其他', clinicalCode: '99' }
      ],
      // 既往手术情况 || 颅内外代偿 || 有无静脉血栓 || 缺血或脑梗死症状
      haveList: [
        { haveName: '有', haveCode: '1' },
        { haveName: '无', haveCode: '2' }
      ],
      // 烟雾状血管位置
      vesselsList: [
        { vesselsName: '大脑前动脉 ACA', vesselsCode: '01' },
        { vesselsName: '大脑中动脉 MCA', vesselsCode: '02' },
        { vesselsName: '大脑后动脉 PCA', vesselsCode: '03' },
        { vesselsName: '其他', vesselsCode: '99' }
      ],
      // 治疗方式
      treatTypeList: [
        { treatTypeName: 'STA/MCA搭桥', treatTypeCode: '01' },
        { treatTypeName: 'STA贴敷', treatTypeCode: '02' },
        { treatTypeName: '颞肌贴敷', treatTypeCode: '03' },
        { treatTypeName: '硬脑膜贴敷', treatTypeCode: '04' },
        { treatTypeName: '其他', treatTypeCode: '99' }
      ],
      // 手术治疗并发症
      surgCompList: [
        { surgCompName: '无', surgCompCode: '98' },
        { surgCompName: '出血', surgCompCode: '01' },
        { surgCompName: '栓塞', surgCompCode: '02' },
        { surgCompName: '继发性癫痫', surgCompCode: '03' },
        { surgCompName: '感染', surgCompCode: '04' },
        { surgCompName: '其他', surgCompCode: '99' }
      ],
      // AVM 类型
      avmTypeList: [
        { avmTypeName: '脑实质AVM', avmTypeCode: '1' },
        { avmTypeName: '脑膜脑AVM', avmTypeCode: '2' }
      ],
      // AVM 大小
      avmSizeList: [
        { avmSizeName: '<3cm', avmSizeCode: '01' },
        { avmSizeName: '3-6cm', avmSizeCode: '02' },
        { avmSizeName: '>6cm', avmSizeCode: '03' }
      ],
      // AVM 部位特征
      avmchaList: [
        { avmchaName: '大脑非功能区', avmchaCode: '1' },
        { avmchaName: '大脑功能区', avmchaCode: '2' }
      ],
      // 静脉引流位置
      venoDraList: [
        { venoDraName: '浅表部', venoDraCode: '1' },
        { venoDraName: '深部', venoDraCode: '2' }
      ],
      // AVM 治疗策略
      avmTreatList: [
        { avmTreatName: '栓塞术', avmTreatCode: '01' },
        { avmTreatName: '血肿清除术', avmTreatCode: '02' },
        { avmTreatName: 'AVM切除术', avmTreatCode: '03' },
        { avmTreatName: '放射外科手术', avmTreatCode: '04' },
        { avmTreatName: '复合手术', avmTreatCode: '05' }
      ],
      // AVM 治疗并发症
      avmCompList: [
        { avmCompName: '无', avmCompCode: '98' },
        { avmCompName: '颅内出血', avmCompCode: '01' },
        { avmCompName: '脑梗死', avmCompCode: '02' },
        // { avmCompName: '高灌注综合征', avmCompCode: '03' },
        // { avmCompName: '正常灌注压突破', avmCompCode: '04' },
        { avmCompName: '其他', avmCompCode: '99' }
      ],
      // AVM责任病灶位置
      lesLocaList: [
        { lesLocaName: '额叶', lesLocaCode: '01' },
        { lesLocaName: '顶叶', lesLocaCode: '02' },
        { lesLocaName: '颞叶', lesLocaCode: '03' },
        { lesLocaName: '枕叶', lesLocaCode: '04' },
        { lesLocaName: '小脑', lesLocaCode: '05' },
        { lesLocaName: '深部', lesLocaCode: '06' }
      ],
      // AVM责任病灶位置
      lesLocaCenList: [
        { lesLocaCenName: '脑干', lesLocaCenCode: '01' },
        { lesLocaCenName: '胼胝体', lesLocaCenCode: '02' },
        { lesLocaCenName: '其他', lesLocaCenCode: '99' }
      ],
      // 手术类型
      operTypeList: [
        { operTypeName: '介入栓塞术', operTypeCode: '01' },
        { operTypeName: '夹闭术', operTypeCode: '02' },
        { operTypeName: '复合手术', operTypeCode: '03' }
      ],
      // 介入途径
      interWayList: [
        { interWayName: '股动脉', interWayCode: '01' },
        { interWayName: '桡动脉', interWayCode: '02' }
      ],
      // 支架名称
      bracketList: [
        { bracketName: 'Wingspan', bracketCode: '01' },
        { bracketName: 'Solitaire', bracketCode: '02' },
        { bracketName: 'Enterprise', bracketCode: '03' },
        { bracketName: 'Lvis', bracketCode: '04' },
        { bracketName: 'neuroform', bracketCode: '05' },
        { bracketName: 'Pipeline', bracketCode: '06' },
        { bracketName: 'tubridge', bracketCode: '07' },
        { bracketName: '其他', bracketCode: '99' }
      ],
      // 其他栓塞材料
      emboMaterList: [
        { emboMaterName: '无', emboMaterCode: '98' },
        { emboMaterName: 'Glubran', emboMaterCode: '01' },
        { emboMaterName: 'onyx', emboMaterCode: '02' },
        { emboMaterName: '其他', emboMaterCode: '99' }
      ],
      // 动脉瘤治疗结果 介入栓塞术 || 夹闭术
      aneuResultList: [
        { aneuResultName: '完全闭塞', aneuResultCode: '1' },
        { aneuResultName: '瘤颈残留', aneuResultCode: '2' },
        { aneuResultName: '部分瘤体残留', aneuResultCode: '3' },
        { aneuResultName: '瘤体残留', aneuResultCode: '4' }
      ],
      // 载瘤动脉情况
      parArteryList: [
        { parArteryName: '无弹簧圈突出', parArteryCode: '1' },
        { parArteryName: '有弹簧圈突出', parArteryCode: '2' },
        { parArteryName: '载瘤动脉闭塞', parArteryCode: '3' }
      ],
      // 动脉瘤治疗结果
      clipaneResList: [
        { clipaneResName: '完全闭塞', clipaneResCode: '01' },
        { clipaneResName: '', clipaneResCode: '02' },
        { clipaneResName: '', clipaneResCode: '03' },
        { clipaneResName: '', clipaneResCode: '04' }
      ],
      // 夹闭后载瘤动脉情况
      clipStatusList: [
        { clipStatusName: '通畅', clipStatusCode: '1' },
        { clipStatusName: '轻度狭窄（＜50%）', clipStatusCode: '2' },
        { clipStatusName: '严重狭窄（＞50%）', clipStatusCode: '3' },
        { clipStatusName: '完全闭塞', clipStatusCode: '4' }
      ],
      // 夹闭术过程中并发症
      clipCompList: [
        { clipCompName: '载瘤动脉闭塞', clipCompCode: '01' },
        { clipCompName: '术中动脉瘤破裂', clipCompCode: '02' },
        { clipCompName: '动脉瘤附近穿支血管闭塞', clipCompCode: '03' },
        { clipCompName: '其它术中并发症', clipCompCode: '99' }
      ],
      // 手术部位
      surgSiteList: [
        { surgSiteName: 'LICA', surgSiteCode: '01' },
        { surgSiteName: 'RICA', surgSiteCode: '02' }
      ],
      // 实施的监测手段
      monitList: [
        { monitName: 'TCD', monitCode: '01' },
        { monitName: '脑电图', monitCode: '02' },
        { monitName: '其他', monitCode: '99' }
      ],
      // CEA手术采取方式
      ceaOperList: [
        { ceaOperName: '标准式 CEA', ceaOperCode: '1' },
        { ceaOperName: '外翻式 CEA', ceaOperCode: '2' },
        { ceaOperName: 'CAS', ceaOperCode: '3' },
        { ceaOperName: '复合手术', ceaOperCode: '4' }
      ],
      // 并发症
      ceaCompList1: [
        { ceaCompName: '无', ceaCompCode: '98' },
        { ceaCompName: '切口血肿', ceaCompCode: '01' },
        { ceaCompName: '颅神经损伤', ceaCompCode: '02' },
        { ceaCompName: '血流动力学障碍', ceaCompCode: '03' },
        { ceaCompName: '再狭窄', ceaCompCode: '04' },
        { ceaCompName: '过度灌注损伤', ceaCompCode: '05' },
        { ceaCompName: '其他', ceaCompCode: '99' }
      ],
      ceaCompList2: [
        { ceaCompName: '无', ceaCompCode: '98' },
        { ceaCompName: '脑梗死', ceaCompCode: '01' },
        { ceaCompName: '脑出血', ceaCompCode: '02' },
        { ceaCompName: '心血管事件', ceaCompCode: '03' },
        { ceaCompName: '再狭窄', ceaCompCode: '04' },
        { ceaCompName: '过度灌注损伤', ceaCompCode: '05' },
        { ceaCompName: '其他', ceaCompCode: '99' }
      ],
      // 抗血小板
      antipList: [
        { antipName: '阿司匹林', antipCode: '01' },
        { antipName: '氯吡格雷', antipCode: '02' },
        { antipName: '奥扎格雷', antipCode: '03' },
        { antipName: '双嘧达莫', antipCode: '04' },
        { antipName: '塞氯吡啶', antipCode: '05' },
        { antipName: '西洛他唑', antipCode: '06' },
        { antipName: '其他', antipCode: '99' }
      ],
      // 抗凝
      anticoagList: [
        { anticoagName: '华法令', anticoagCode: '01' },
        { anticoagName: '利伐沙班', anticoagCode: '02' },
        { anticoagName: '达比加群', anticoagCode: '03' },
        { anticoagName: '阿哌沙班', anticoagCode: '04' },
        { anticoagName: '依度沙班', anticoagCode: '05' },
        { anticoagName: '低分子肝素', anticoagCode: '06' },
        { anticoagName: '普通肝素', anticoagCode: '07' },
        { anticoagName: '其他', anticoagCode: '99' }
      ],
      // 降压
      stepDownList: [
        { stepDownName: 'ACEI', stepDownCode: '01' },
        { stepDownName: 'ARB', stepDownCode: '02' },
        { stepDownName: '利尿剂', stepDownCode: '03' },
        { stepDownName: 'β受体阻滞剂', stepDownCode: '04' },
        { stepDownName: '钙拮抗剂', stepDownCode: '05' },
        { stepDownName: '其他', stepDownCode: '99' }
      ],
      // 调脂
      lipidReguList: [
        { lipidReguName: '他汀类', lipidReguCode: '01' },
        { lipidReguName: '烟酸及其衍生物', lipidReguCode: '02' },
        { lipidReguName: '贝特类', lipidReguCode: '03' },
        { lipidReguName: '胆固醇吸收抑制剂', lipidReguCode: '04' },
        { lipidReguName: '其他', lipidReguCode: '99' }
      ],
      // 降糖
      hypogList: [
        { hypogName: '胰岛素', hypogCode: '01' },
        { hypogName: '磺酰脲类', hypogCode: '02' },
        { hypogName: '双胍类', hypogCode: '03' },
        { hypogName: 'α糖苷酶抑制剂', hypogCode: '04' },
        { hypogName: '胰岛素增敏剂', hypogCode: '05' },
        { hypogName: '非磺酰脲类促胰岛素分泌剂', hypogCode: '06' },
        { hypogName: '其他', hypogCode: '99' }
      ],
      subcorticalStructuralAreaValue: '',
      middleCerebralArteryCortexValue: '',
      otherCheckValue: '',
      ASPECTAllValue: [],
      ASPECTDetail: 10,
      ASPECTResult: '患者3个月后很有希望独立生活'
    }
  },
  created() {
    this.formInit()
    this.findStrokeDiagnose()
    this.getEventTouchs()
  },
  methods: {
    // 表单数据初始化
    formInit() {
      this.numList.forEach((el) => {
        this.$set(this.treatForm, el, {
          eventId: parseInt(el)
        })
        this.stateForm[el] = {}
      })
    },
    // 查询诊断信息
    findStrokeDiagnose() {
      findStrokeDiagnose({ dispatchId: this.checkrowdata.dispatchId }).then(
        (res) => {
          const arr = res.data.filter((item) => item.type === '1')
          if (arr.length > 0) {
            this.estimate = arr[0]
            this.$set(
              this.estimate,
              'cerebralInfarction',
              arr[0].cerebralInfarction
            )

            this.$set(this.estimate, 'hematencephalon', arr[0].hematencephalon)
            console.log(this.estimate, '项目')
          }
        }
      )
    },
    // 查询治疗信息
    getEventTouchs() {
      queryEventTouchsData(this.checkrowdata.dispatchId).then((res) => {
        this.numList.forEach((el) => {
          if (res.data[el]) {
            this.$set(this.treatForm, el, res.data[el])
            this.stateForm[el] = JSON.parse(JSON.stringify(res.data[el]))
          } else {
            const obj = {
              id: null,
              user: this.$store.getters.userId,
              missionid: this.checkrowdata.dispatchId,
              eventId: parseInt(el),
              hit_time: ''
            }
            this.$set(this.treatForm, el, obj)
          }
          this.getAvmScore()
        })
        this.initEmbolComp()
      })
    },
    // 初始化栓塞术过程中并发症字段信息
    initEmbolComp() {
      if (this.treatForm['90040'].detail) {
        const other = this.treatForm['90040'].detail.split('#<>')
        this.other1 = other[0]
        this.other2 = other[1]
      }
      if (this.treatForm['90040'].property2) {
        this.a90040 = this.treatForm['90040'].property2
          .match(/;(\S*);/)[1]
          .split(';')
        this.b90040 = this.a90040
      }
    },
    // 栓塞术过程中并发症字段property拼接
    compChange() {
      const arr = Array.from(new Set([...this.a90040, ...this.b90040]))
      this.treatForm['90040'].property2 = ';' + arr.join(';') + ';'
    },
    // 栓塞术过程中并发症字段detail拼接
    embolCompInput() {
      this.treatForm['90040'].detail = this.other1 + '#<>' + this.other2
    },

    requiredCheck() {
      if (this.treatForm['90015'].property2 == 4 || this.treatForm['90015'].property2 == 5) {

      }
    },
    // 需保存数据处理
    save() {
      console.log('开始保存')
      this.requiredCheck()
      const arr = []
      this.getName('judge', '90094') // 是否桥接
      this.getName('anesMode', '90022') // 麻醉方式
      for (const key in this.treatForm) {
        if (typeof this.stateForm[key].eventId !== 'undefined') {
          if (
            // eslint-disable-next-line eqeqeq
            this.stateForm[key].property2 != this.treatForm[key].property2 ||
            this.stateForm[key].detail !== this.treatForm[key].detail ||
            this.stateForm[key].hit_time !== this.treatForm[key].hit_time
          ) {
            arr.push(JSON.stringify(this.treatForm[key]))
          }
        } else {
          if (
            this.treatForm[key].property2 ||
            this.treatForm[key].detail ||
            this.treatForm[key].hit_time
          ) {
            arr.push(JSON.stringify(this.treatForm[key]))
          }
        }
      }
      console.log(arr, '保存数据')
      this.saveCure(arr.join('#'))
    },
    // 保存接口
    saveCure(data) {
      saveCure({
        cure: data
      }).then((res) => {
        if (res.code === '9999') {
          this.$message.error('保存失败')
        } else {
          this.$message.success('保存成功')
          this.findStrokeDiagnose()
          this.getEventTouchs()
        }
      })
    },
    // AVM评分计算
    getAvmScore() {
      const sum =
        parseInt(this.treatForm['90068'].property2) +
        parseInt(this.treatForm['90069'].property2) +
        parseInt(this.treatForm['90070'].property2) -
        2
      this.$set(this.treatForm['90071'], 'property2', sum)
    },
    // 通过key值获取相应名称
    getName(field, numField) {
      this[field + 'List'].forEach((item) => {
        if (this.treatForm[numField].property2 === item[field + 'Code']) {
          this.treatForm[numField].detail = item[field + 'Name']
        }
      })
    },
    // 其他输入框清空
    selectOther(key) {
      if (this.treatForm[key].property2.indexOf('99') < 0) {
        this.treatForm[key].detail = ''
      }
      // console.log("treatForm['90048'].property",this.treatForm['90048'].property2)
    },
    changeValue(data) {
      this.ASPECTDetail = 10
      const temp_data1 = this.subcorticalStructuralAreaValue ? this.subcorticalStructuralAreaValue.split(';') : ''
      const temp_data2 = this.middleCerebralArteryCortexValue ? this.middleCerebralArteryCortexValue.split(';') : ''
      const temp_data3 = this.otherCheckValue ? this.otherCheckValue.split(';') : ''
      if (temp_data1 && temp_data1.length > 0) {
        temp_data1.pop()
        temp_data1.shift()
      }
      if (temp_data2 && temp_data2.length > 0) {
        temp_data2.pop()
        temp_data2.shift()
      }
      if (temp_data3 && temp_data3.length > 0) {
        temp_data3.pop()
        temp_data3.shift()
      }
      for (let i = 0; i < temp_data1.length; i++) {
        if (temp_data1[i] === '') {
          continue
        }
        this.ASPECTDetail -= 1
        this.ASPECTAllValue.push(this.subcorticalStructuralArea[temp_data1[i]])
        console.log(this.ASPECTDetail)
      }
      for (let i = 0; i < temp_data2.length; i++) {
        if (temp_data2[i] === '') {
          continue
        }
        this.ASPECTDetail -= 1
        this.ASPECTAllValue.push(this.middleCerebralArteryCortex[temp_data2[i]])
        console.log(this.ASPECTDetail)
      }
      for (let i = 0; i < temp_data3.length; i++) {
        if (temp_data3[i] === '') {
          continue
        }
        this.ASPECTAllValue.push(this.middleCerebralArteryCortex[temp_data3[i]])
        console.log(this.ASPECTDetail)
      }
      if (this.ASPECTDetail > 7) {
        this.ASPECTResult = '患者3个月后很有希望独立生活'
      } else {
        this.ASPECTResult = '患者不能独立生活或死亡的可能性大'
      }
    }
  }
}
</script>

<style lang="scss" scoped>
.body {
  padding-left: 20px;
  padding-right: 20px;
  font-size: 14px;

  .button-save {
    display: flex;
    justify-content: flex-end;
    padding: 0 25px;
  }

  .card {
    margin: 0px 25px 10px 15px;
    padding: 10px 20px 6px 10px;
    background-color: #f9f9f9;

    &-title {
      margin-top: 10px;
      margin-bottom: 5px;
      font-size: 16px;

      .right {
        display: flex;
        justify-content: flex-end;

        div {
          padding-left: 20px;
        }
      }

      .content {
        display: flex;
        align-items: center;
      }
    }

    .card-content {
      padding-left: 20px;

      .embol-comp {
        min-width: 1000px;
        max-width: 1400px;

        .el-checkbox {
          width: 250px;
        }
      }
    }

    .content-line {
      margin-top: 10px;
    }
  }

  .box-treat-stroke {
    .radio_out_indent {
      margin-right: 120px;
    }
  }

  .vertical-center {
    display: flex;
    align-items: center;
    padding-left: 0px;
    padding-right: 10px;
  }
}
</style>

<style lang="scss">
.box-treat-stroke {
  .el-form-item {
    margin-top: 4px;
    margin-bottom: 4px;

    .midum {
      .el-checkbox {
        width: 80px !important;
      }
    }

    &__label {
      font-weight: normal;
    }

    &--medium {
      .el-form-item {
        &__label {
          line-height: 25px;
        }

        &__content {
          line-height: 25px;
        }
      }
    }
  }

  .el-input--medium {
    margin-right: 40px;

    .el-input__inner {
      height: 25px;
      line-height: 25px;
      padding-left: 10px;
    }

    .el-input__icon {
      line-height: 25px;
    }
  }

  .el-select--medium {
    width: 220px;
    margin-right: 40px;
  }

  .date {
    .el-input--medium {
      .el-input__inner {
        height: 25px;
        line-height: 25px;
        padding-left: 30px;
        padding-right: 0px;
        // width: 195px;
      }
    }
  }

  .tici .el-select {
    width: 370px;
  }

  .el-radio {
    line-height: 25px !important;

  }
}

.red-star::before {
  content: "*";
  color: red;
}
</style>
